#ifndef CAT_H_INCLUDED
#define CAT_H_INCLUDED
#include "mygrafx.h"
#include "myaudio.h"

class Cat
{
    private:
        MyGrafx image;

        MyAudio *music;

        int xpos,
            ypos,
            framex,
            framey,
            sprite_width,
            sprite_height,
            counter;

        bool falling,
             hit;


    public:
        Cat();
        int action(int character_x, int charactery, int scrolling, int damage);
        void draw();
        void animate();
        int whatHappened(int, int, int);

        char collision(int object1_x, int object1_y, int object1_w, int object1_h,
                       int object2_x, int object2_y, int object2_w, int object2_h);
        bool collisionX(int object1_x, int object1_w,
                       int object2_x, int object2_w);
        bool collisionY(int object1_y, int object1_h,
                       int object2_y, int object2_h);
};
#endif // CAT_H_INCLUDED
